package com.ljye.jg.ljye.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.ljye.jg.ljye.R;

//个人资料
public class Activity_Personal_Data extends Activity {
    private Intent intent;
    public View.OnClickListener listener = new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            switch (view.getId()) {
                case R.id.back://返回
                    finish();
                    break;
                case R.id.Consultation://预览主页
                    intent = new Intent(Activity_Personal_Data.this, Activity_Teacher_Home.class);
                    startActivity(intent);
                    break;
                case R.id.basic_facts://基本信息
                    intent = new Intent(Activity_Personal_Data.this, Activity_Essential_info.class);
                    startActivity(intent);
                    break;
                case R.id.jx_jl://教学经历
                    intent = new Intent(Activity_Personal_Data.this, Activity_Teaching_Experience.class);
                    startActivity(intent);
                    break;
                case R.id.jx_td://教学特点
                    intent = new Intent(Activity_Personal_Data.this, Activity_Teaching_Characteristics.class);
                    startActivity(intent);
                    break;
                case R.id.successful_case://成果案例
                    intent = new Intent(Activity_Personal_Data.this, Activity_Successful_Case.class);
                    startActivity(intent);
                    break;
                case R.id.graduate_school://毕业院校
                    intent = new Intent(Activity_Personal_Data.this, Activity_Graduate_School.class);
                    startActivity(intent);
                    break;
                case R.id.reward_honor://奖励荣誉
                    intent = new Intent(Activity_Personal_Data.this, Activity_Reward_honor.class);
                    startActivity(intent);
                    break;
                case R.id.personal_style://展示风采
                    intent = new Intent(Activity_Personal_Data.this, Activity_Personal_Style.class);
                    startActivity(intent);
                    break;
                default:
                    break;
            }
        }
    };
    private ImageView back;//返回
    private TextView Consultation;//预览主页
    private LinearLayout basicFacts;//基本信息
    private LinearLayout jxjl;//教学经历
    private LinearLayout jxTd;//教学特点
    private LinearLayout successfulCase;//成果案例
    private LinearLayout graduateSchool;//毕业院校
    private LinearLayout rewardHonor;//奖励荣誉
    private LinearLayout personalStyle;//展示风采
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity__personal__data);
        //初始化控件
        initView();

        back.setOnClickListener(listener);
        Consultation.setOnClickListener(listener);
        basicFacts.setOnClickListener(listener);
        jxjl.setOnClickListener(listener);
        jxTd.setOnClickListener(listener);
        successfulCase.setOnClickListener(listener);
        graduateSchool.setOnClickListener(listener);
        rewardHonor.setOnClickListener(listener);
        personalStyle.setOnClickListener(listener);

    }

    private void initView() {
        back = (ImageView) findViewById(R.id.back);
        Consultation = (TextView) findViewById(R.id.Consultation);
        basicFacts = (LinearLayout) findViewById(R.id.basic_facts);
        jxjl = (LinearLayout) findViewById(R.id.jx_jl);
        jxTd = (LinearLayout) findViewById(R.id.jx_td);
        successfulCase = (LinearLayout) findViewById(R.id.successful_case);
        graduateSchool = (LinearLayout) findViewById(R.id.graduate_school);
        rewardHonor = (LinearLayout) findViewById(R.id.reward_honor);
        personalStyle = (LinearLayout) findViewById(R.id.personal_style);

    }

}
